import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import StudySinglePage from '@/components/StudySinglePage'
import MyButton from '@/components/MyButton'
import User from '../my/User'
import Stu from '../my/Stu'
import Emp from '../my/Emp'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/singlePage',
      name: 'StudySinglePage',
      component: StudySinglePage
    },{
      path: '/but',
      name: 'MyButton',
      component: MyButton
    },{
      path: '/user',
      name: 'User',
      component: User
    },{
      path: '/stu',
      name: 'Stu',
      component: Stu
    },{
      path: '/emp',
      name: 'Emp',
      component: Emp
    }
  ]
})
